﻿using System;
using Newtonsoft.Json;

namespace GONES.Tools.Common
{
    /// <summary>
    /// 登陆信息，设置可序列化，以便可放入StateServer或SqlServer
    /// </summary>
    [Serializable]
    public class LoginInfo
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public virtual string UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public virtual string UserName { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        public virtual string UserPassWord { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public virtual string TrueName { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public virtual string DepartId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public virtual string DepartName { get; set; }
        /// <summary>
        /// 最后登陆时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 登陆次数
        /// </summary>
        public int LoginCount { get; set; }
      
        /// <summary>
        /// 登陆IP
        /// </summary>
        public string LoginIp { get; set; }

      
        
        [JsonIgnore]
        public long[] Pope = new long[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
    }
}
